package ch1;

public class Zuoye03089 {
    public static void main(String[] args) {
        int i=100;
        int b;
        while (i>=100&&i<1000){
            b=(i/100)*(i/100)*(i/100)+(i/10%10)*(i/10%10)*(i/10%10)+(i%10)*(i%10)*(i%10);
            if (i==b){
                System.out.println(b);
            }
            i++;
        }
    }
}
